const svgModules = import.meta.glob('@/assets/llms/*.svg', { eager: true })

const svgIcons = new Map(
  Object.entries(svgModules).map(([path, module]) => {
    const name = path.split('/').pop()
    return [name, module.default]
  })
)

export const getLlmIcon = (logo) => {
    return svgIcons.get(logo)
}